import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;


public class Test {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		Properties defaultPros = new Properties();
		File file = new File("D:\\config.properties");
		InputStream in = new FileInputStream(file);
		in = null;
		defaultPros.load(in);
		System.out.println(defaultPros.get("Test"));
		defaultPros.load(new FileInputStream("D:\\config-spi.properties"));
		System.out.println(defaultPros.get("Test"));
		System.out.println(defaultPros.get("yuanlai"));
	}

}
